#pragma once
#include "MObject.h"
#include "CMarioSound.h"

class FoodBox:public MObject
{
protected:
	float _lastX;
	float _lastY;

	bool _willBreaked;

	shared_ptr<Sprite>  _spriteNormal;
	shared_ptr<Sprite>  _spriteEmpty;
	shared_ptr<Sprite>  _spriteCoin;

	Vector _tv,_tp;

	bool _allowDrawCoin;

public:
	FoodBox(void);
	FoodBox(float x, float y, int deltaTime,int resourceName,CResourceManager *rm);
	~FoodBox(void);

	void Render();
	void Animate();
	void actAfterCollided(int Direction, shared_ptr<MObject> Object);
	void setStatus(int Status);


public:
	static const int STATUS_NORMAL = 0;
	static const int STATUS_EMPTY = 1;
};

